package com.zdkj.subway.support.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 票务日志表
 *
 * @author cui_com
 * @date 2020-01-08 17:21:51
 */
@Data
@TableName("sw_st_operate_log")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "票务日志表")
public class SwStOperateLog extends Model<SwStOperateLog> {
    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @TableId
    @ApiModelProperty(value = "唯一标识")
    private Long id;
    /**
     * 行为类型
     */
    @ApiModelProperty(value = "行为类型")
    private String actionType;

    /**
     * 项目编号
     */
    @ApiModelProperty(value = "项目编号")
    private String functionCode;


    /**
     * 项目名称
     */
    @ApiModelProperty(value = "项目名称")
    private String functionName;

    /**
     * 操作层级
     */
    @ApiModelProperty(value = "操作层级")
    private String operateLevel;

    /**
     * 创建人ID
     */
    @ApiModelProperty(value = "创建人ID")
    private Integer creatorId;
    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    private String creatorName;

    /**
     * 创建人工号
     */
    @ApiModelProperty(value = "创建人工号")
    private String creatorCode;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 操作数据项
     */
    @ApiModelProperty(value = "操作数据项")
    private String alterField;
    /**
     * 修改前内容
     */
    @ApiModelProperty(value = "修改前内容")
    private String fieldContent;
    /**
     * 修改后内容
     */
    @ApiModelProperty(value = "修改后内容")
    private String alterFieldContent;

    /**
     * 修改人部门ID
     */
    @ApiModelProperty(value = "修改人部门ID")
    private Integer deptId;

    /**
     * 是否归档  0未归档   1已归档
     */
    @ApiModelProperty(value = "是否归档")
    private String recordFlag;

    /**
     * 归档时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "归档时间")
    private LocalDateTime recordTime;

    /**
     * 时间条件
     */
    @TableField(exist = false)
    private List<String> dates1;
}
